using Spring.Objects.Factory.Support;
using SpringXmlApplicationContext = Spring.Context.Support.XmlApplicationContext;

namespace Liberate.CodeGenerator.Spring.DynamicLoading
{
    class XmlApplicationContext : SpringXmlApplicationContext
    {
        public XmlApplicationContext(params string[] configurationLocations)
            : base(configurationLocations)
        { }

        protected override DefaultListableObjectFactory CreateObjectFactory()
        {
            return new ObjectFactory(CaseSensitive, GetInternalParentObjectFactory());
        }
    }
}